#ifndef IODEVICELIBGUI_H
#define IODEVICELIBGUI_H


#include <QTimer>
#include <QtWidgets/QMainWindow>
#include <vector>
#include "ui_BDMainWindow.h"
#include "BDOptionDialog.h"
#include "BDPainterWidget.h"
#include "BDShape.h"
class BDMainWindow
	: public QMainWindow
{
	Q_OBJECT

public:
	BDMainWindow(int id, QWidget *parent = 0);
	~BDMainWindow();

signals:
	void TableViewDataChanged(QModelIndex index1, QModelIndex index2);

private:
	Ui::IODeviceLibGUIClass ui;
	BDPainterWidget* m_pPainter;
	QStandardItemModel* m_pModel;
	bool m_bFirstUpdate;
	int m_iId;

protected slots:
	void OnStartRecord();
	void OnStartTest();
	void OnRefreshPainter(const QVector<BDShape*>& shapes);
	void OnRefreshDetail(const QMap<QString, QString>& details);

};

#endif // IODEVICELIBGUI_H
